home *** CD-ROM | disk | FTP | other *** search
-
- ╔════════════════════════════════════════════════════════════════════════════╗
- ║ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ SAMPLE ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ║
- ║ ║
- ║ Version » 1.0a ║
- ║ File Type » Clarion Application ║
- ║ Written » November 01, 1993, George Wilcken, Bill Guy ║
- ║ ║
- ║ Purpose » Sample Demo On How To Add Multiple Printer Support To ║
- ║ Your Designer Applications Using Code Files Generated ║
- ║ By PRINTERS (C)1993 ║
- ║ ║
- ║ ──────────────────────────────────────────────────────────────────────── ║
- ║ History » Who.... When...... Why................................. ║
- ║ ──────────────────────────────────────────────────────────────────────── ║
- ║ 1.0 Gew·Whg 11/01/1993 File Created. ║
- ║ ║
- ║ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ░░▒▒▓▓██▓▓▒▒░░ ║
- ╚════════════════════════════════════════════════════════════════════════════╝
-
-
- This is a sample application which demonstrates how to add multiple
- printer support to your own applications. To call the PRINTERS.EXE program
- from within the designer we added a menu selection to the main menu called
- appropiately "Select Printer" which calls the SP procedure. The SP procedure
- is a dummy input memory form whose sole purpose is to provide a setup procedure
- for our "RUN" as you may not use "RUN('PRINTERS')" as a valid procedure from
- a menu choice. See the setup procedure for SP as an example of how to call
- printers from within your app. The setup procedure for the report checks to
- see if a printer has been selected, and if so reads the printer control codes
- for the selected printer from PRN_CDS.DAT. Use the PRN_CDS file field names
- to add control codes to your report. See the PRT_TST procedure in the sample
- APP for more detail.
-
- This sample application is 100% designer generated with no other procedures
- or code hooks. It was developed using the STANDARD.MDL model file but will
- work unsing the network model as well.
-
- NOTE: This sample assumes the the PRINTERS.EXE program and all if its data
- files are in the current directory. Before running the compiled
- sample application, be sure to copy the PRINTERS files into the
- current directory.
-
- Below is a listing of all the available control codes for you to use in
- the generation of your reports. Simply use the code on the left in your
- reports to achieve the effect listed on the right.
-
-
- C:CPI10 = 10 cpi
- C:CPI12 = 12 CPI
- C:BON = Bold On
- C:BOFF = Bold Off
- C:CSB = Char Set - Bar Code
- C:CSL = Char Set - Legal
- C:CSLD = Char Set - Line Draw
- C:CSM7 = Char Set - Math #7
- C:CSM8 = Char Set - Math #8
- C:CSPC = Char Set - PC
- C:CSPF = Char Set - Pifont
- C:CSRE = Char Set - Roman Exn
- C:CSR8 = Char Set - Roman #8
- C:CSUPS = Char Set - UPC
- C:CH1 = Character Set #1
- C:CH2 = Character Set #2
- C:CON = Compressed On
- C:COFF = Compressed Off
- C:CS10 = Correspondance 10CPI
- C:CS12 = Correspondance 12CPI
- C:DHON = Double Height On
- C:DHOFF = Double Height Off
- C:DWON = Double Wide On
- C:DWOFF = Double Wide Off
- C:EMON = Emphasized On
- C:EMOFF = Emphasized Off
- C:EXON = Expanded On
- C:EXOFF = Expanded Off
- C:FU = Floating Underline
- C:FC = Font - Courier
- C:FD = Font - Draft
- C:FH = Font - Helvetica #2
- C:FL = Font - Letter Gothic
- C:FLP = Font - Line Printer
- C:FP = Font - Prestige
- C:FSS = Font Sans Serif
- C:FS = Font Script
- C:FTR = Font - Times Roman
- C:FC1 = Font Cart #1
- C:FC2 = Font Cart #2
- C:FF = Form Feed
- C:ID1 = Internat: Denmark #1
- C:ID2 = Internat: Denmark #2
- C:IF1 = Internat: France #1
- C:IG1 = Internat: Germany #1
- C:II1 = Internat:Italy #1
- C:IJ1 = Internat:Japan #1
- C:ISP = Internat: Spain #1
- C:ISW = Internat: Sweeden #1
- C:IUK = Internat: United Kingdom #1
- C:IUS = Internat: USA #1
- C:ION = Italic On
- C:IOFF = Italic Off
- C:LMON = Landscape Mode On
- C:LMOFF = Landscape Mode Off
- C:NLON = Near Letter On
- C:NLOFF = Near Letter Off
- C:OCRA = OCR a
- C:OCRB = OCR B
- C:OCRBX = OCR B Ext
- C:P6 = Pitch 6
- C:P8 = Pitch 8
- C:P10 = Pitch 10
- C:P12 = Pitch 12
- C:P14 = Pitch 14
- C:P16 = Pitch 16.66
- C:PT6 = Point 6
- C:PT8 = Point 8
- C:PT10 = Point 10
- C:PT12 = Point 12
- C:PT14 = Point 14
- C:PON = Proportional On
- C:POFF = Proportional Off
- C:QMON = Quiet Mode On
- C:QMOFF = Quiet Mode Off
- C:RS = Re Set
- C:SB = Stroke - Bold
- C:SL = Stroke - Light
- C:SM = Stroke - Medium
- C:SBON = Subscript On
- C:SBOFF = Supscript Off
- C:SHON = Shadow On
- C:SHOFF = Shadow Off
- C:SSON = Superscript On
- C:SSOFF = Superscript Off
- C:UON = Underline On
- C:UOFF = Underline Off
- C:VS6 = Vertical Spacing 6 LPI
- C:VS8 = Vertical Spacing 8LPI
- C:VS10 = Vertical Spacing 10LPI
- C:ZS = Zero - Slashed
- C:ZU = Zero - Unslashed
- C:PTR_TYP = *
-
- * This field contains either a "M" or a "L" depending on which printer type
- was selected (M=Dot Matrix and L=Laser).
-
-
-
-
- NOTE: Although all of the possible control codes are listed, not all
- are supported by every printer. If you are unsure whether a printer
- supports a code, refer to that specific printers manual.
-
-